<!DOCTYPE html>
<html>
    <head>
        <title>Hệ Thống Hỗ Trợ Giáo Dục Tiểu Học</title>
        <link rel="shortcut icon" href="<?php echo base_url(); ?>resource/images/student-xxl.png" />
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!--script-->
        <script type="text/javascript" src="<?php echo base_url(); ?>resource/script/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>resource/script/jquery.validate.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>resource/script/messages_vi.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>resource/script/login.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>resource/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>resource/script/jchart.js"></script>
        <!--CSS-->
        <link rel="stylesheet" href="<?php echo base_url(); ?>resource/bootstrap/css/bootstrap.min.css" type="text/css"/>
        <link rel="stylesheet" href="<?php echo base_url(); ?>resource/css/main.css" type="text/css"/>
        <link rel="stylesheet" href="<?php echo base_url(); ?>resource/css/login.css" type="text/css"/>
    <link rel="stylesheet" href="<?php echo base_url(); ?>resource/css/thongke.css" type="text/css"/>
    </head>
    <body>
        <section id="page">
            <!--Đầu trang-->
            <a href="<?php echo base_url(); ?>" title="Hệ thống hỗ trợ giáo dục tiểu học"><div id="dautrang"></div></a>
            <div class="line"></div>

            <!--Menu-->
            <nav>
                <ul>
                    <li><a href="<?php echo base_url(); ?>baigiang"><i class="glyphicon glyphicon-pencil"></i>BÀI GIẢNG</a></li>
                    <li><a href="<?php echo base_url(); ?>giaovien"><i class="glyphicon glyphicon-pencil"></i>GIÁO VIÊN</a></li>
                    <li><a href="<?php echo base_url(); ?>baitap"><i class="glyphicon glyphicon-pencil"></i>BÀI TẬP</a></li>
                    <li><a href="<?php echo base_url(); ?>gopy"><i class="glyphicon glyphicon-pencil"></i>GÓP Ý</a></li>
                    <?php 
                        if($ma = $this->session->userdata('prie_username'))
                        {
                            $link = base_url()."hocsinh/chitiethocsinh/".$ma;;
                            if($this->session->userdata('prie_phanloai') == 'Giáo viên') 
                                $link = base_url()."giaovien/chitietgiaovien/".$ma;
                            if($this->session->userdata('prie_phanloai') == 'Phụ huynh') 
                                $link = base_url()."phuhuynh/chitietphuhuynh/".$ma;
                            echo "<li><a href='$link'><i class='glyphicon glyphicon-pencil'></i>THÔNG TIN</a></li>";
                        }

                        if($this->session->userdata('prie_phanloai') == 'Giáo viên')
                        {
                            echo '<li><a href="', base_url(),'quanly','"><i class="glyphicon glyphicon-pencil"></i>QUẢN LÝ</a></li>';
                        }
                    ?>
                    
                </ul>
            </nav>
            <div class="menu_box block">
                <div class="menu_box_cantrai"><div id="clock"></div></div>
                <div class="menu_box_canphai">
                    <?php 
                        if(($user = $this->session->userdata('prie_username'))&&($phanloai = $this->session->userdata('prie_phanloai'))) {echo $phanloai;
                            echo ": ";
                            echo $user;
                            echo "   -   <a href='" . base_url() . "login/logout'>Đăng xuất</a>";
                        } else {
                            echo "<a id='btnLogin' href='#'>Đăng nhập</a>";
                        }; 
                    ?>
                </div>
            </div>
            